﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using BrnMall.Manager.Domain.WeApp;

namespace QIDong.WeApp.Models
{
    /// <summary>
    /// 店铺小程序信息
    /// </summary>
    public class StoreApplicationModel
    {
        /// <summary>
        /// 
        /// </summary>
        public int StoreAppId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Logo { get; set; }
        /// <summary>
        /// 模板ID
        /// </summary>
        public int AppId { get; set; }
        /// <summary>
        /// 模板编号
        /// </summary>
        public int TemplateId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int StoreId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 授权信息
        /// </summary>
        public AppAuthorization Authorization { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int AuthorizationId { get; set; }
        /// <summary>
        /// 开发状态0:未知，1:待上传，2:已上传，3：待审核 4:审核结束，5:已发布
        /// </summary>
        public int DevStatus { get; set; }
        /// <summary>
        /// 提交审核后的微信编号
        /// </summary>
        public long AuditId { get; set; }
        /// <summary>
        /// 审核结果
        /// </summary>
        public string AuditInfo { get; set; }

        /// <summary>
        /// 是否需要更新
        /// </summary>
        public bool NeedUpdate { get; set; }
        /// <summary>
        /// 最近上线发布时间
        /// </summary>
        public DateTime ReleaseTime { get; set; }

        /// <summary>
        /// 用户自定义小程序TabBar配置
        /// </summary>
        public string UserTabBar { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public StoreApplicationModel()
        {
            AuditId = 0;
            AuditInfo = string.Empty;
            ReleaseTime = new DateTime(1900, 1, 1);
            UserTabBar = string.Empty;
        }
    }
}